import request from "@/utils/request";

// 列表查看分页
export function getEquipmentList(data) {
  return request({
    url: "/keyue/admin/equipment/list_by_page",
    method: "post",
    data,
  });
}

// 新增设备
export function addEquipmentItem(data) {
  return request({
    url: "/keyue/admin/equipment/add",
    method: "post",
    data,
  });
}

// 编辑设备
export function editEquipmentItem(data) {
  return request({
    url: "/keyue/admin/equipment/edit",
    method: "post",
    data,
  });
}

// 详情
export function getEquipmentDetail(data) {
  return request({
    url: "/keyue/admin/equipment/query_by_id",
    method: "post",
    data,
  });
}

// 删除
export function delEquipmentItem(data) {
  return request({
    url: "/keyue/admin/equipment/delete_by_id",
    method: "post",
    data,
  });
}
